/**
 * Project Name:JingZhenGu
 * File Name:ModelList.java
 * Package Name:com.gc.jingzhengu.vo
 * Date:2014-6-13上午11:33:32
 * Copyright (c) 2014, wangyd523@gmail.com All Rights Reserved.
 *
 */

package com.jzg.jcptadmin.data.vo;

import android.os.Parcel;
import android.os.Parcelable;

import com.jzg.jcptadmin.base.BaseObject;

import java.util.ArrayList;
import java.util.List;

/**
 * ClassName:ModelList <br/>
 * Function: 车系实体对象列表. <br/>
 * Reason: TODO ADD REASON. <br/>
 * Date: 2014-6-13 上午11:33:32 <br/>
 * 
 * @author 汪渝栋
 * @version
 * @since JDK 1.6
 * @see
 */
public class ModelList extends BaseObject implements Parcelable
{
	private ArrayList<ModelCategory> ManufacturerList;

	public ArrayList<ModelCategory> getManufacturerList() {
		return ManufacturerList;
	}

	public void setManufacturerList(ArrayList<ModelCategory> manufacturerList) {
		ManufacturerList = manufacturerList;
	}

	@Override
	public String toString() {
		return "ModelList{" +
				"ManufacturerList=" + ManufacturerList +
				'}';
	}


	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		super.writeToParcel(dest, flags);
		dest.writeList(this.ManufacturerList);
	}

	public ModelList() {
	}

	protected ModelList(Parcel in) {
		super(in);
		this.ManufacturerList = new ArrayList<ModelCategory>();
		in.readList(this.ManufacturerList, List.class.getClassLoader());
	}

	public static final Creator<ModelList> CREATOR = new Creator<ModelList>() {
		public ModelList createFromParcel(Parcel source) {
			return new ModelList(source);
		}

		public ModelList[] newArray(int size) {
			return new ModelList[size];
		}
	};
}
